home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 May: Tool Chest / Dev.CD May 98 TC.toast / Tool Chest / Testing & Debugging / General tools / Report Error 2.0 / ReportError.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-17  |  917 b   |  39 lines  |  [TEXT/KAHL]

  1. /*================================================================================
  2.     reportError.h
  3.     
  4.     ©1991 Greg Anderson
  5.     greggor@apple.com
  6.     
  7.     FREE DISTRIBUTION
  8.     
  9.     The possessor of this source code may use any portion of
  10.     it for any purpose, and I place no restriction on its
  11.     redistribution.
  12.     
  13.     These routines are very convenient for debugging; they will convert
  14.     OSErrors from short negative numbers to human-readable strings in
  15.     Pascal format
  16. ================================================================================*/
  17. #ifndef __REPORTERROR__
  18. #define __REPORTERROR__
  19.  
  20. #ifndef __TYPES
  21. #include <Types.h>
  22. #endif
  23.  
  24. /*
  25. // Constants:
  26. */
  27. #define kReportErrorID    30303
  28.  
  29. #define kReportErrorOK    1
  30. #define kReportErrorSC6    2
  31.  
  32. /*
  33. // Prototypes for reportError.c
  34. */
  35. Boolean            FindResultCodeDescription( OSErr theErr, Str255 errorNameStr, Str255 errorDescStr );
  36. void            ReportError( Str255 errorMsg, OSErr theErr );
  37.  
  38. #endif
  39.